package com.luckynote.common.base.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * *********************************************
 * Copyright LUCKY-NOTE.
 * All rights reserved.
 * ****************************************************
 *  Version       Date         Author            Desc
 *    v1.0       2019/7/7      bingo        获取YML配置参数
 * ****************************************************
 * </pre>
 */
@Component
public class AppConfig {

    public static String projectName;

    public  static String getProjectName() {
        return AppConfig.projectName;
    }

    @Value("${spring.application.name}")
    public void setProjectName(String name) {
        AppConfig.projectName = name;
    }
}
